package com.wlzg.collectiontool.view

import android.content.Context
import android.view.View
import com.lxj.xpopup.core.CenterPopupView
import com.lxj.xpopup.core.PositionPopupView
import com.wlzg.collectiontool.R
import com.wlzg.collectiontool.model.bean.LoginRes
import com.wlzg.collectiontool.util.MConfigUtil
import kotlinx.android.synthetic.main.dia_userinfos.view.*
import kotlinx.android.synthetic.main.new_daolu.view.*
import kotlinx.android.synthetic.main.new_daolu.view.diss

class GrzlDIa(var mContext:Context, var mFragment:UserFragment) : CenterPopupView(mContext),
    View.OnClickListener {
    val userInfo=MConfigUtil.logInRes?.userInfo
    override fun getImplLayoutId(): Int {
        return R.layout.dia_userinfos
    }

    override fun onCreate() {
        super.onCreate()
        diss.setOnClickListener(this)
       account.setText(userInfo?.workNo)
        name.setText(userInfo?.realname)
        phoneNo.setText(userInfo?.phone)
        date.setText(userInfo?.createTime)
        jg.setText(userInfo?.createBy)

    }

    override fun onClick(p0: View?) {
       when(p0?.id){
           R.id.diss->{
               dismiss()
           }
       }
    }
}